package com.xuan.friend.service.user;

import com.xuan.common.core.domain.TableDataInfo;
import com.xuan.friend.domain.contest.dto.ContestQueryDTO;
import com.xuan.friend.domain.user.UserContest;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author ASUS
* @description 针对表【tb_user_contest(用户-竞赛 关系表)】的数据库操作Service
* @createDate 2024-11-26 22:28:59
*/
public interface UserContestService extends IService<UserContest> {

    int enterContest(Long contestId, String token);

    /**
     *  从 redis 中查询个人竞赛列表数据
     * @param contestQueryDTO
     * @return
     */
    TableDataInfo redisListContest(ContestQueryDTO contestQueryDTO);
}
